let person = [
    { name: "John Doe", age: 30, city: "New York"},
    { name: "Jane Smith", age: 25, city: "Los Angeles"},
]

let prop  = curry((key,obj)=>{
    return obj[key]
})

const newProp = prop('name')

let name = newProp(person)


let newArr = Array.map(newProp) 
//任何数组调用map方法，都可以通过触发newProp来实现
//来获取到数组中每个对象的name属性
    
       
    
    
